﻿@model IEnumerable<MvcBlog.Models.Post>

@{
    ViewBag.Title = "SearchResults";
}

<h2>SearchResults</h2>

@foreach (var item in Model) {
    
        <article>
            <h2> @Html.DisplayFor(modelItem => item.Title) </h2>
            <h5> Posted on October @Html.DisplayFor(modelItem => item.PostDate) by admin  </h5>
            <p>  @Html.DisplayFor(modelItem => item.Content) </p>
        </article>
}